Python Programmatically Stop Execution Of Python Script [duplicate

Python Programmatically Stop Execution Of Python Script [duplicate